home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- set PASSWORD=password
- set CATOP=fmiCA
- set CONFIG=openssl.config
-
- del %CATOP%\index.txt
- echo off > %CATOP%\index.txt
-
- openssl req -config %CONFIG% -batch -new ^
- -passout pass:%PASSWORD% ^
- -keyout newreq.pem -out newreq.pem ^
- -days 9999
-
- openssl ca -config %CONFIG% -batch ^
- -passin pass:%PASSWORD% -policy policy_anything ^
- -out newcert.pem -infiles newreq.pem
-
- copy /Y newcert.pem server.pem
- type newreq.pem >> server.pem
-
- rmdir fmiCA /S /Q
- del newcert.pem
- del newreq.pem
- del .rnd
- del openssl.exe
- del openssl.config
-